
// var IndexedList = require('../utils/indexed-list');
// var parseText = require('./parse-text');
function ANode(options) {
    options = options || {};
    if (options.isText) {
        this.isText = 1;
        this.text = options.text;
        this.textExpr = parseText()
    } else {
        this.directives = options.directives || new IndexedList();
        this.props = options.props || new IndexedList();
        this.events = options.events || [];
        this.childs = options.childs || [];
        this.tagName = options.tagName;
        this.givenSlots = options.givenSlots;
        this.binds = options.binds;
    }

    this.parent = options.parent;
}
exports = module.exports = ANode;